﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Universe.WCF.Behaviors.Test
{
    class SampleTraffic
    {
        void Do()
        {
TrafficStatistic before = TrafficDefaultInfo.ServerStatistic.Clone();

Exec_Some_Work();

TrafficStatistic workTraffic = TrafficStatistic.Substract(
    TrafficDefaultInfo.ServerStatistic.Clone(),
    before);

Debug.WriteLine(
    "Some Work Traffic:" 
    + Environment.NewLine
    + workTraffic.ToPlainReport());

        }

        private void Exec_Some_Work()
        {
            throw new NotImplementedException();
        }
    }
}
